module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  outputDir: '../www',
  //解决vue3.0 axios 跨域问题
  devServer: {
    port: 8081,
    proxy: {
      '/pttDev': {
        target: 'http://112.33.14.243:8081',  // target host http://112.33.14.243:8081
        ws: true,  // proxy websockets
        changeOrigin: true,  // needed for virtual hosted sites
        pathRewrite: {
          '^/apis': ''  // rewrite path
        }
      },
    }
  }
};

/*
const px2rem = require('postcss-px2rem')

const postcss = px2rem({
  remUnit: 64
})

module.exports = {
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          postcss
        ]
      }
    }
  },
  publicPath: process.env.NODE_ENV === 'production'
      ? './'
      : '/',

  outputDir: '../www',

};
*/
